package com.example.vaccine.service;

import com.example.vaccine.VO.PageVO;
import com.example.vaccine.VO.RecordVO;
import com.example.vaccine.entity.Vaccines;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.vaccine.form.CreateForm;
import com.example.vaccine.form.CreateVaccineForm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Coisn
 * @since 2025-06-12
 */
public interface VaccinesService extends IService<Vaccines> {
    //已经上市疫苗的创建（初期测试使用）
    public Boolean create(CreateVaccineForm createVaccineForm);
    //查找
    public List<RecordVO> singleVaccine(String numbering);
    //展示数据
    public PageVO vaccineList(Integer page, Integer size);
    //删除记录
    public Boolean delte(Integer id);
    //更新记录
    public Boolean update(CreateVaccineForm createVaccineForm);

    Vaccines getByNumbering(String numbering);

}
